<?php
namespace common\service;
use common\models\Error;

class ErrorService extends BaseService{


    //错误监控入库
    public static function Error($data){
        $data['error_time'] = time();
        $model=new Error();
        $model->setAttributes($data);
        $model->save();
        return true;

    }

}